import Mock from "mockjs";

export const getGlobalConfig = () => {
    return Mock.mock({
        "id": 296,
        "userId": "2807e207-dff4-46c2-bf1a-64b2af865d42",
        "categoryId": 30,
        "name": "网格布局",
        "aliasName": "网格布局",
        "userName": "高新区管理员",
        "loginName": null,
        "createTime": "2019-08-13 03:11:58.0",
        "updateTime": "2020-04-17 17:06:59.0",
        "layout": {
            "containsParam": true,
            "type": "grid",
            "rows": [{
                    "isdisplay": true,
                    "type": "param",
                    "params": [{
                        "paramType": "input",
                        "col": [{
                            "name": "税款表",
                            "column": "nsrmc",
                            "datasetId": 296
                        }],
                        "name": "隐藏企业名称",
                        "alias": "隐藏企业名称",
                        "id": "efebc490-1481-4209-9223-202a3a2298d8",
                        "type": "like"
                    }],
                    "height": 100
                },
                {
                    "isdisplay": true,
                    "type": "param",
                    "params": [{
                            "paramType": "selector",
                            "col": [{
                                    "custom": "dmn_time",
                                    "name": "一般公共预算收入gpdb一般公共预算收入gpdb一般公共预算收入gpdb",
                                    "column": "id_mth",
                                    "datasetId": 28,
                                    "alias": "数据日期"
                                },
                                {
                                    "custom": "dmn_time",
                                    "name": "税款表",
                                    "column": "id_mth",
                                    "datasetId": 296,
                                    "alias": "日期编号"
                                }
                            ],
                            "name": "日期",
                            "alias": "全局-日期",
                            "id": "73bbbb74-3a9a-42a3-87c1-259a7bb1df0d",
                            "type": "like"
                        },
                        {
                            "paramType": "selector",
                            "col": [{
                                "custom": "dmn_sz",
                                "name": "税款表",
                                "column": "code_sz",
                                "datasetId": 296,
                                "alias": "税种代码"
                            }],
                            "name": "税种",
                            "alias": "全局-税种",
                            "id": "2579a785-58ad-4351-ac00-5beeb1a6e1d9",
                            "type": "like"
                        }
                    ],
                    "height": 100
                },
                {
                    "isdisplay": true,
                    "type": "widget",
                    "widgets": [{
                        "widget": {
                            "data": {
                                "datasetId": 28,
                                "expressions": [],
                                "config": {
                                    "selects": [],
                                    "treedim": [{
                                            "dimtbl": "dmn_time",
                                            "colname": "id_mth"
                                        },
                                        {
                                            "dimtbl": "dmn_time",
                                            "colname": "name_mth"
                                        }
                                    ],
                                    "chart_type": "echarts_line",
                                    "keys": [{
                                        "col": "name_mth",
                                        "alias": "日期名称",
                                        "id": "a1304386-1ac0-44f0-a9a7-953abd62d58d",
                                        "type": "=",
                                        "values": []
                                    }],
                                    "values": [{
                                        "cols": [{
                                            "formatter": "",
                                            "col": "zzs",
                                            "alias": "增值税",
                                            "id": "f998f9df-d5ad-4294-91f2-52e48f582c46",
                                            "sort": "asc",
                                            "type": "measure",
                                            "aggregate_type": "sum"
                                        }]
                                    }],
                                    "groups": [],
                                    "filters": [],
                                    "sorts": [],
                                    "sort_col": "name_mth",
                                    "option": {
                                        "yAxis": [{
                                            "show": true,
                                            "type": "value"
                                        }],
                                        "xAxis": {
                                            "axisLabel": {
                                                "rotate": 0,
                                                "fontSize": 12,
                                                "interval": "auto"
                                            },
                                            "type": "category"
                                        },
                                        "legend": {
                                            "show": true,
                                            "right": "auto",
                                            "textStyle": {},
                                            "top": "bottom",
                                            "bottom": "auto"
                                        },
                                        "grid": {
                                            "show": true,
                                            "right": 60,
                                            "top": "10%",
                                            "top_number": 10,
                                            "left": 50,
                                            "bottom": 60
                                        },
                                        "series": [{
                                            "lineStyle": {},
                                            "type": "line"
                                        }],
                                        "toolbox": {
                                            "orient": "horizontal",
                                            "feature": {
                                                "saveAsImage": {
                                                    "excludeComponents": [
                                                        "toolbox",
                                                        "legend"
                                                    ],
                                                    "pixelRatio": 1,
                                                    "show": false,
                                                    "emphasis": {
                                                        "iconStyle": {
                                                            "color": "#9976ad"
                                                        }
                                                    },
                                                    "type": "svg",
                                                    "title": "保存图片",
                                                    "iconStyle": {
                                                        "color": "#41390d"
                                                    }
                                                },
                                                "dataZoom": {
                                                    "show": true,
                                                    "yAxisIndex": "none"
                                                },
                                                "magicType": {
                                                    "show": false,
                                                    "type": [
                                                        "line",
                                                        "bar",
                                                        "stack",
                                                        "tiled"
                                                    ]
                                                },
                                                "restore": {
                                                    "show": true
                                                },
                                                "dataView": {
                                                    "show": false,
                                                    "readOnly": false
                                                }
                                            },
                                            "show": true
                                        },
                                        "etheme": "macarons"
                                    }
                                },
                                "filterGroups": []
                            },
                            "edit": false,
                            "updateTime": "2020-02-26 16:20:01.0",
                            "userName": null,
                            "categoryName": "曲线图_柱状图_百分比柱状图_百分比堆叠图",
                            "delete": false,
                            "userId": "2807e207-dff4-46c2-bf1a-64b2af865d42",
                            "createTime": "2019-08-13 03:07:01.0",
                            "loginName": null,
                            "name": "折线图",
                            "id": 483,
                            "relations": [{
                                    "_name": "关联普通表格",
                                    "targetId": 484,
                                    "name": "普通表格",
                                    "type": "widget",
                                    "fields": [{
                                        "sourceField": "日期名称",
                                        "targetField": "56230400-ae72-43bb-bad5-2b7fceff0923"
                                    }]
                                },
                                {
                                    "_name": "关联饼状图",
                                    "targetId": 503,
                                    "name": "新建饼状图",
                                    "type": "widget",
                                    "fields": [{
                                        "sourceField": "日期名称",
                                        "targetField": "56230400-ae72-43bb-bad5-2b7fceff0923"
                                    }]
                                },
                                {
                                    "_name": "关联漏斗图",
                                    "targetId": 486,
                                    "name": "漏斗图",
                                    "type": "widget",
                                    "fields": [{
                                        "sourceField": "日期名称",
                                        "targetField": "56230400-ae72-43bb-bad5-2b7fceff0923"
                                    }]
                                },
                                {
                                    "_name": "关联看板",
                                    "targetId": "297",
                                    "type": "board",
                                    "fields": [{
                                        "sourceField": "日期名称",
                                        "targetField": "6a86ab3b-afea-4c9a-ba5a-ce88ac0c2bcf"
                                    }],
                                    "opentype": "browsertab"
                                }
                            ],
                            "categoryId": 68
                        },
                        "chart_type": "echarts_line",
                        "widgetId": 483,
                        "name": "折线图",
                        "width": 12,
                        "show": false,
                        "datasetId": 28,
                        "relations": [{
                                "_name": "关联普通表格",
                                "targetId": 484,
                                "name": "普通表格",
                                "type": "widget",
                                "fields": [{
                                    "sourceField": "日期名称",
                                    "targetField": "56230400-ae72-43bb-bad5-2b7fceff0923"
                                }]
                            },
                            {
                                "_name": "关联饼状图",
                                "targetId": 503,
                                "name": "新建饼状图",
                                "type": "widget",
                                "fields": [{
                                    "sourceField": "日期名称",
                                    "targetField": "56230400-ae72-43bb-bad5-2b7fceff0923"
                                }]
                            },
                            {
                                "_name": "关联漏斗图",
                                "targetId": 486,
                                "name": "漏斗图",
                                "type": "widget",
                                "fields": [{
                                    "sourceField": "日期名称",
                                    "targetField": "56230400-ae72-43bb-bad5-2b7fceff0923"
                                }]
                            },
                            {
                                "_name": "关联看板",
                                "targetId": "297",
                                "type": "board",
                                "fields": [{
                                    "sourceField": "日期名称",
                                    "targetField": "6a86ab3b-afea-4c9a-ba5a-ce88ac0c2bcf"
                                }],
                                "opentype": "browsertab"
                            }
                        ],
                        "params": [{
                            "paramType": "selector",
                            "col": [{
                                "name": "一般公共预算收入gpdb一般公共预算收入gpdb一般公共预算收入gpdb",
                                "column": "id_mth",
                                "datasetId": "28"
                            }],
                            "name": "日期名称",
                            "alias": "折线图-日期名称",
                            "type": "like"
                        }],
                        "height": 400
                    }],
                    "tabArray": [{
                        "width": 12,
                        "tabset": [{
                                "name": "标签1",
                                "widgets": [{
                                    "widget": {
                                        "data": {
                                            "datasetId": 296,
                                            "expressions": [],
                                            "config": {
                                                "selects": [],
                                                "treedim": [{
                                                        "dimtbl": "dmn_sz",
                                                        "colname": "code_sz"
                                                    },
                                                    {
                                                        "dimtbl": "dmn_sz",
                                                        "colname": "name_sz"
                                                    },
                                                    {
                                                        "dimtbl": "dmn_time",
                                                        "colname": "name_mth"
                                                    },
                                                    {
                                                        "dimtbl": "dmn_time",
                                                        "colname": "id_mth"
                                                    }
                                                ],
                                                "chart_type": "echarts_funnel",
                                                "keys": [{
                                                    "col": "name_mth",
                                                    "alias": "日期名称",
                                                    "id": "56230400-ae72-43bb-bad5-2b7fceff0923",
                                                    "type": "=",
                                                    "values": []
                                                }],
                                                "values": [{
                                                    "cols": [{
                                                        "formatter": "",
                                                        "col": "je_y",
                                                        "alias": "月度金额",
                                                        "id": "8c79e6cd-f29c-4e2d-a188-a489cf032e95",
                                                        "type": "measure",
                                                        "aggregate_type": "sum"
                                                    }]
                                                }],
                                                "groups": [],
                                                "filters": [],
                                                "sorts": [],
                                                "option": {
                                                    "legend": {
                                                        "padding": 1,
                                                        "itemGap": 5,
                                                        "top": "top",
                                                        "orient": "vertical",
                                                        "left": "left",
                                                        "bottom": "auto",
                                                        "show": true,
                                                        "right": "auto",
                                                        "textStyle": {},
                                                        "type": "scroll",
                                                        "align": "left"
                                                    },
                                                    "series": [{
                                                        "encode": {
                                                            "value": "月度金额",
                                                            "itemName": "日期名称",
                                                            "seriesName": "月度金额"
                                                        },
                                                        "bottom": 60,
                                                        "itemStyle": {
                                                            "borderColor": "#fff",
                                                            "borderWidth": 1
                                                        },
                                                        "maxSize": "100%",
                                                        "sort": "descending",
                                                        "label": {
                                                            "show": true,
                                                            "position": "inside"
                                                        },
                                                        "labelLine": {
                                                            "lineStyle": {
                                                                "width": 1,
                                                                "type": "solid"
                                                            },
                                                            "length": 10
                                                        },
                                                        "type": "funnel",
                                                        "top": 60,
                                                        "left": "10%",
                                                        "gap": 2,
                                                        "width": "80%",
                                                        "emphasis": {
                                                            "label": {
                                                                "fontSize": 20
                                                            }
                                                        },
                                                        "minSize": "0%"
                                                    }],
                                                    "tips": "标签组件中测试"
                                                }
                                            },
                                            "filterGroups": []
                                        },
                                        "createTime": "2019-08-16 02:51:58.0",
                                        "edit": false,
                                        "loginName": null,
                                        "name": "漏斗图",
                                        "updateTime": "2019-10-31 15:06:21.0",
                                        "id": 486,
                                        "userName": null,
                                        "categoryName": "曲线图_柱状图_百分比柱状图_百分比堆叠图",
                                        "delete": false,
                                        "userId": "2807e207-dff4-46c2-bf1a-64b2af865d42",
                                        "categoryId": 68
                                    },
                                    "chart_type": "echarts_funnel",
                                    "widgetId": 486,
                                    "name": "漏斗图",
                                    "width": 24,
                                    "show": false,
                                    "datasetId": 296,
                                    "params": [{
                                        "paramType": "selector",
                                        "col": [{
                                            "name": "税款表",
                                            "column": "id_mth",
                                            "datasetId": 296
                                        }],
                                        "name": "日期",
                                        "alias": "漏斗图-日期",
                                        "type": "like"
                                    }],
                                    "height": 400
                                }]
                            },
                            {
                                "name": "标签2",
                                "widgets": [{
                                    "widget": {
                                        "data": {
                                            "datasetId": 296,
                                            "expressions": [],
                                            "config": {
                                                "selects": [],
                                                "treedim": [{
                                                        "dimtbl": "dmn_sz",
                                                        "colname": "code_sz"
                                                    },
                                                    {
                                                        "dimtbl": "dmn_sz",
                                                        "colname": "name_sz"
                                                    },
                                                    {
                                                        "dimtbl": "dmn_time",
                                                        "colname": "name_mth"
                                                    },
                                                    {
                                                        "dimtbl": "dmn_time",
                                                        "colname": "id_mth"
                                                    }
                                                ],
                                                "chart_type": "g2_timeline",
                                                "keys": [{
                                                    "col": "name_mth",
                                                    "alias": "日期名称",
                                                    "id": "56230400-ae72-43bb-bad5-2b7fceff0923",
                                                    "sort": "asc",
                                                    "type": "=",
                                                    "values": []
                                                }],
                                                "values": [{
                                                    "cols": [{
                                                        "formatter": "",
                                                        "col": "je_q",
                                                        "alias": "季度",
                                                        "aggregate_type": "sum"
                                                    }]
                                                }],
                                                "groups": [],
                                                "filters": [],
                                                "sorts": [],
                                                "option": {
                                                    "mode": "alternate",
                                                    "color": "green"
                                                }
                                            },
                                            "filterGroups": []
                                        },
                                        "createTime": "2019-08-27 05:51:25.0",
                                        "edit": false,
                                        "loginName": null,
                                        "name": "时间轴",
                                        "updateTime": "2019-09-20 04:20:22.0",
                                        "id": 487,
                                        "userName": null,
                                        "categoryName": "曲线图_柱状图_百分比柱状图_百分比堆叠图",
                                        "delete": false,
                                        "userId": "2807e207-dff4-46c2-bf1a-64b2af865d42",
                                        "categoryId": 68
                                    },
                                    "chart_type": "g2_timeline",
                                    "widgetId": 487,
                                    "name": "时间轴",
                                    "width": 24,
                                    "show": false,
                                    "datasetId": 296,
                                    "height": 400
                                }]
                            },
                            {
                                "name": "普通表格",
                                "widgets": [{
                                    "widget": {
                                        "data": {
                                            "datasetId": 296,
                                            "expressions": [],
                                            "config": {
                                                "keys": [{
                                                        "col": "name_mth",
                                                        "alias": "日期名称",
                                                        "id": "56230400-ae72-43bb-bad5-2b7fceff0923",
                                                        "sort": "asc",
                                                        "type": "=",
                                                        "values": []
                                                    },
                                                    {
                                                        "col": "name_szdl",
                                                        "alias": "国地税名称",
                                                        "id": "50612550-823c-405f-85e8-d9863ca43e37",
                                                        "sort": "asc",
                                                        "type": "=",
                                                        "values": []
                                                    },
                                                    {
                                                        "col": "name_gbhydl",
                                                        "alias": "行业名称",
                                                        "id": "ae224b9d-6c81-49b8-af04-a7c4c4f30be1",
                                                        "sort": "asc",
                                                        "type": "=",
                                                        "values": []
                                                    },
                                                    {
                                                        "col": "nsrmc",
                                                        "alias": "纳税人名称",
                                                        "id": "d9af470f-ce5c-4f86-84a0-1f9032d5486e",
                                                        "type": "=",
                                                        "values": []
                                                    }
                                                ],
                                                "values": [{
                                                    "cols": [{
                                                            "formatter": "",
                                                            "col": "je_q",
                                                            "isheji": true,
                                                            "alias": "季度金额",
                                                            "isxiaoji": true,
                                                            "id": "fcc97f4b-d0fc-4a2b-a47d-dfcbae812bfb",
                                                            "sort": "asc",
                                                            "type": "measure",
                                                            "aggregate_type": "sum"
                                                        },
                                                        {
                                                            "formatter": "",
                                                            "col": "je_y",
                                                            "isheji": true,
                                                            "alias": "月度金额",
                                                            "isxiaoji": true,
                                                            "id": "8c79e6cd-f29c-4e2d-a188-a489cf032e95",
                                                            "type": "measure",
                                                            "aggregate_type": "sum"
                                                        }
                                                    ]
                                                }],
                                                "start": 0,
                                                "length": 10,
                                                "groups": [],
                                                "filters": [],
                                                "sort_col": "id_mth",
                                                "selects": [],
                                                "treedim": [{
                                                        "dimtbl": "dmn_sz",
                                                        "colname": "code_sz"
                                                    },
                                                    {
                                                        "dimtbl": "dmn_sz",
                                                        "colname": "name_sz"
                                                    },
                                                    {
                                                        "dimtbl": "dmn_time",
                                                        "colname": "name_mth"
                                                    },
                                                    {
                                                        "dimtbl": "dmn_time",
                                                        "colname": "id_mth"
                                                    }
                                                ],
                                                "sort_type": "asc",
                                                "chart_type": "datatablenoneng",
                                                "pagesize": 10,
                                                "sorts": [{
                                                    "col": "id_mth",
                                                    "alias": "日期编号",
                                                    "id": "f4e50cbc-3cc2-4f36-818b-f21e9f178fce",
                                                    "sort": "asc"
                                                }],
                                                "option": {
                                                    "download": true
                                                }
                                            },
                                            "filterGroups": []
                                        },
                                        "edit": false,
                                        "updateTime": "2020-04-02 15:55:37.0",
                                        "userName": null,
                                        "categoryName": "曲线图_柱状图_百分比柱状图_百分比堆叠图",
                                        "delete": false,
                                        "userId": "2807e207-dff4-46c2-bf1a-64b2af865d42",
                                        "createTime": "2019-08-13 03:10:00.0",
                                        "loginName": null,
                                        "name": "普通表格",
                                        "id": 484,
                                        "relations": [{
                                            "_name": "查询",
                                            "targetId": 484,
                                            "name": "普通表格",
                                            "type": "widget",
                                            "fields": [{}]
                                        }],
                                        "categoryId": 68
                                    },
                                    "chart_type": "datatablenoneng",
                                    "widgetId": 484,
                                    "name": "普通表格tabs",
                                    "width": 24,
                                    "show": false,
                                    "datasetId": 296,
                                    "relations": [{
                                        "_name": "查询",
                                        "targetId": 484,
                                        "name": "普通表格",
                                        "type": "widget",
                                        "fields": [{}]
                                    }],
                                    "params": [{
                                        "paramType": "selector",
                                        "col": [],
                                        "name": "撕撕撕",
                                        "id": "22171ad1-6de3-46a7-8d18-614bd203188f",
                                        "type": "like"
                                    }],
                                    "height": 400
                                }]
                            }
                        ]
                    }],
                    "height": 400
                },
                {
                    "isdisplay": true,
                    "type": "widget",
                    "widgets": [{
                            "widget": {
                                "data": {
                                    "datasetId": 296,
                                    "expressions": [],
                                    "config": {
                                        "keys": [{
                                                "col": "name_mth",
                                                "alias": "日期名称",
                                                "id": "56230400-ae72-43bb-bad5-2b7fceff0923",
                                                "sort": "asc",
                                                "type": "=",
                                                "values": []
                                            },
                                            {
                                                "col": "name_szdl",
                                                "alias": "国地税名称",
                                                "id": "50612550-823c-405f-85e8-d9863ca43e37",
                                                "sort": "asc",
                                                "type": "=",
                                                "values": []
                                            },
                                            {
                                                "col": "name_gbhydl",
                                                "alias": "行业名称",
                                                "id": "ae224b9d-6c81-49b8-af04-a7c4c4f30be1",
                                                "sort": "asc",
                                                "type": "=",
                                                "values": []
                                            },
                                            {
                                                "col": "nsrmc",
                                                "alias": "纳税人名称",
                                                "id": "d9af470f-ce5c-4f86-84a0-1f9032d5486e",
                                                "type": "=",
                                                "values": []
                                            }
                                        ],
                                        "values": [{
                                            "cols": [{
                                                    "formatter": "",
                                                    "col": "je_q",
                                                    "isheji": true,
                                                    "alias": "季度金额",
                                                    "isxiaoji": true,
                                                    "id": "fcc97f4b-d0fc-4a2b-a47d-dfcbae812bfb",
                                                    "sort": "asc",
                                                    "type": "measure",
                                                    "aggregate_type": "sum"
                                                },
                                                {
                                                    "formatter": "",
                                                    "col": "je_y",
                                                    "isheji": true,
                                                    "alias": "月度金额",
                                                    "isxiaoji": true,
                                                    "id": "8c79e6cd-f29c-4e2d-a188-a489cf032e95",
                                                    "type": "measure",
                                                    "aggregate_type": "sum"
                                                }
                                            ]
                                        }],
                                        "start": 0,
                                        "length": 10,
                                        "groups": [],
                                        "filters": [],
                                        "sort_col": "id_mth",
                                        "selects": [],
                                        "treedim": [{
                                                "dimtbl": "dmn_sz",
                                                "colname": "code_sz"
                                            },
                                            {
                                                "dimtbl": "dmn_sz",
                                                "colname": "name_sz"
                                            },
                                            {
                                                "dimtbl": "dmn_time",
                                                "colname": "name_mth"
                                            },
                                            {
                                                "dimtbl": "dmn_time",
                                                "colname": "id_mth"
                                            }
                                        ],
                                        "sort_type": "asc",
                                        "chart_type": "datatablenoneng",
                                        "pagesize": 10,
                                        "sorts": [{
                                            "col": "id_mth",
                                            "alias": "日期编号",
                                            "id": "f4e50cbc-3cc2-4f36-818b-f21e9f178fce",
                                            "sort": "asc"
                                        }],
                                        "option": {
                                            "download": true
                                        }
                                    },
                                    "filterGroups": []
                                },
                                "edit": false,
                                "updateTime": "2020-04-02 15:55:37.0",
                                "userName": null,
                                "categoryName": "曲线图_柱状图_百分比柱状图_百分比堆叠图",
                                "delete": false,
                                "userId": "2807e207-dff4-46c2-bf1a-64b2af865d42",
                                "createTime": "2019-08-13 03:10:00.0",
                                "loginName": null,
                                "name": "普通表格",
                                "id": 484,
                                "relations": [{
                                    "_name": "查询",
                                    "targetId": 483,
                                    "name": "折线图",
                                    "type": "widget",
                                    "fields": [{
                                        "sourceField": "日期名称",
                                        "targetField": "56230400-ae72-43bb-bad5-2b7fceff0923"
                                    }]
                                }],
                                "categoryId": 68
                            },
                            "chart_type": "datatablenoneng",
                            "widgetId": 484,
                            "name": "普通表格",
                            "width": 12,
                            "show": false,
                            "datasetId": 296,
                            "params": [{
                                "paramType": "selector",
                                "col": [{
                                    "custom": "dmn_time",
                                    "name": "税款表",
                                    "column": "id_mth",
                                    "datasetId": 296,
                                    "alias": "日期编号"
                                }],
                                "name": "ftft",
                                "alias": "ffgfgffgfg",
                                "id": "120a171c-be8d-4f86-aca2-c7958fdf3d25",
                                "type": "like"
                            }],
                            "relations": [{
                                "_name": "查询",
                                "targetId": 483,
                                "name": "折线图",
                                "type": "widget",
                                "fields": [{
                                    "sourceField": "日期名称",
                                    "targetField": "56230400-ae72-43bb-bad5-2b7fceff0923"
                                }]
                            }],
                            "height": 300
                        },
                        {
                            "widget": {
                                "data": {
                                    "datasetId": 296,
                                    "expressions": [],
                                    "config": {
                                        "selects": [],
                                        "treedim": [{
                                                "dimtbl": "dmn_sz",
                                                "colname": "code_sz"
                                            },
                                            {
                                                "dimtbl": "dmn_sz",
                                                "colname": "name_sz"
                                            },
                                            {
                                                "dimtbl": "dmn_time",
                                                "colname": "name_mth"
                                            },
                                            {
                                                "dimtbl": "dmn_time",
                                                "colname": "id_mth"
                                            }
                                        ],
                                        "chart_type": "pivot_table",
                                        "keys": [{
                                            "col": "name_mth",
                                            "alias": "日期名称",
                                            "id": "56230400-ae72-43bb-bad5-2b7fceff0923",
                                            "sort": "asc",
                                            "type": "=",
                                            "values": []
                                        }],
                                        "values": [{
                                            "cols": [{
                                                    "formatter": "",
                                                    "col": "je_q",
                                                    "alias": "季度金额",
                                                    "aggregate_type": "sum"
                                                },
                                                {
                                                    "formatter": "",
                                                    "col": "je_y",
                                                    "alias": "月度金额",
                                                    "aggregate_type": "sum"
                                                }
                                            ]
                                        }],
                                        "groups": [{
                                                "col": "name_sz",
                                                "alias": "税种名称",
                                                "id": "b5555c61-427b-4778-99a2-f3b2307650ef",
                                                "sort": "asc",
                                                "type": "eq",
                                                "values": []
                                            },
                                            {
                                                "col": "name_gbhydl",
                                                "alias": "行业名称",
                                                "id": "ae224b9d-6c81-49b8-af04-a7c4c4f30be1",
                                                "sort": "asc",
                                                "type": "eq",
                                                "values": []
                                            }
                                        ],
                                        "filters": [],
                                        "sorts": [],
                                        "option": {
                                            "width": "800"
                                        }
                                    },
                                    "filterGroups": []
                                },
                                "createTime": "2019-08-07 04:52:24.0",
                                "edit": false,
                                "loginName": null,
                                "name": "钻取表格",
                                "updateTime": "2019-09-19 00:03:53.0",
                                "id": 482,
                                "userName": null,
                                "categoryName": "曲线图_柱状图_百分比柱状图_百分比堆叠图",
                                "delete": false,
                                "userId": "2807e207-dff4-46c2-bf1a-64b2af865d42",
                                "categoryId": 68
                            },
                            "chart_type": "pivot_table",
                            "widgetId": 482,
                            "name": "图表名称",
                            "width": 12,
                            "show": false,
                            "datasetId": 296,
                            "height": 300
                        }
                    ],
                    "height": 300
                },
                {
                    "isdisplay": true,
                    "type": "widget",
                    "widgets": [{
                        "widget": {
                            "data": {
                                "datasetId": 296,
                                "expressions": [],
                                "config": {
                                    "selects": [],
                                    "treedim": [{
                                            "dimtbl": "dmn_sz",
                                            "colname": "code_sz"
                                        },
                                        {
                                            "dimtbl": "dmn_sz",
                                            "colname": "name_sz"
                                        },
                                        {
                                            "dimtbl": "dmn_time",
                                            "colname": "name_mth"
                                        },
                                        {
                                            "dimtbl": "dmn_time",
                                            "colname": "id_mth"
                                        }
                                    ],
                                    "chart_type": "datatablenoneng",
                                    "keys": [{
                                            "col": "code_szdl",
                                            "alias": "国地税编码",
                                            "id": "af2f9cd7-075f-460a-b580-1978f205198b",
                                            "type": "=",
                                            "values": []
                                        },
                                        {
                                            "col": "name_szdl",
                                            "alias": "国地税名称",
                                            "id": "50612550-823c-405f-85e8-d9863ca43e37",
                                            "type": "=",
                                            "values": []
                                        },
                                        {
                                            "col": "name_sz",
                                            "values": [],
                                            "alias": "税种名称",
                                            "dimtbl": "dmn_sz",
                                            "id": "b5555c61-427b-4778-99a2-f3b2307650ef",
                                            "type": "=",
                                            "_id_column": "code_sz"
                                        }
                                    ],
                                    "values": [{
                                        "cols": [{
                                            "formatter": "",
                                            "col": "je_y",
                                            "id": "8c79e6cd-f29c-4e2d-a188-a489cf032e95",
                                            "type": "measure",
                                            "aggregate_type": "sum"
                                        }]
                                    }],
                                    "pagesize": 10,
                                    "start": 0,
                                    "length": 10,
                                    "groups": [],
                                    "filters": [],
                                    "sorts": [],
                                    "option": {
                                        "download": true,
                                        "tips": "二维表格下载按钮测试"
                                    }
                                },
                                "filterGroups": []
                            },
                            "edit": false,
                            "updateTime": "2020-04-02 15:59:37.0",
                            "userName": null,
                            "categoryName": "曲线图_柱状图_百分比柱状图_百分比堆叠图",
                            "delete": false,
                            "userId": "2807e207-dff4-46c2-bf1a-64b2af865d42",
                            "createTime": "2020-02-29 05:07:05.0",
                            "loginName": null,
                            "name": " 表格下载",
                            "id": 556,
                            "relations": [{
                                "_name": "查询",
                                "targetId": 483,
                                "name": "折线图",
                                "type": "widget",
                                "fields": [{
                                    "sourceField": "国地税编码",
                                    "targetField": "a1304386-1ac0-44f0-a9a7-953abd62d58d"
                                }]
                            }],
                            "categoryId": 68
                        },
                        "chart_type": "datatablenoneng",
                        "widgetId": 556,
                        "name": " 测试二维表格",
                        "width": 24,
                        "show": false,
                        "datasetId": 296,
                        "params": [{
                                "paramType": "input",
                                "name": "2222",
                                "alias": "222",
                                "id": "cda3d9ca-0f3d-4d77-a21a-f20a54646a31",
                                "type": "like"
                            },
                            {
                                "paramType": "input",
                                "name": "3333",
                                "alias": "333",
                                "id": "5172aa71-e96d-4005-9ee1-d6da4ac9b975",
                                "type": "like"
                            },
                            {
                                "paramType": "input",
                                "name": "444",
                                "alias": "444",
                                "id": "dd23bfba-fcba-48a5-a15f-ba06248a8e1d",
                                "type": "like"
                            },
                            {
                                "paramType": "input",
                                "name": "555",
                                "alias": "555",
                                "id": "c8797dd8-e409-4213-abf2-f9520e4720b0",
                                "type": "like"
                            },
                            {
                                "paramType": "input",
                                "name": "666",
                                "alias": "666",
                                "id": "37afe79b-474d-42ff-ac91-823b754e03e4",
                                "type": "like"
                            },
                            {
                                "paramType": "input",
                                "name": "777",
                                "alias": "777",
                                "id": "21610ef4-bc9e-407e-b087-5f0425f4742f",
                                "type": "like"
                            },
                            {
                                "paramType": "input",
                                "name": "888",
                                "alias": "888",
                                "id": "bf6e9210-424f-4129-8057-c1fe9a874508",
                                "type": "like"
                            },
                            {
                                "paramType": "selector",
                                "name": "999",
                                "alias": "999",
                                "id": "dfa54fe0-868c-45f1-a60f-074a0d085a40",
                                "type": "like"
                            },
                            {
                                "paramType": "input",
                                "col": [{
                                    "name": "税款表",
                                    "column": "nsrmc",
                                    "datasetId": 296
                                }],
                                "name": "data",
                                "alias": "数据查询",
                                "id": "f9dbed9e-5fa2-42ac-b0db-a9c136a03459",
                                "type": "like"
                            }
                        ],
                        "relations": [{
                            "_name": "查询",
                            "targetId": 483,
                            "name": "折线图",
                            "type": "widget",
                            "fields": [{
                                "sourceField": "国地税编码",
                                "targetField": "a1304386-1ac0-44f0-a9a7-953abd62d58d"
                            }]
                        }],
                        "height": 100
                    }],
                    "tabArray": [],
                    "height": 100
                }
            ]
        },
        "categoryName": null,
        "edit": false,
        "delete": false
    })
}
export const getDimensionValues = () => {
    return Mock.mock([{
            "parent": "#",
            "id": "2013",
            "text": "2013年",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2013",
            "id": "201310",
            "text": "2013年10月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2013",
            "id": "201311",
            "text": "2013年11月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2013",
            "id": "201312",
            "text": "2013年12月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "#",
            "id": "2014",
            "text": "2014年",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2014",
            "id": "201401",
            "text": "2014年01月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2014",
            "id": "201402",
            "text": "2014年02月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2014",
            "id": "201403",
            "text": "2014年03月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2014",
            "id": "201404",
            "text": "2014年04月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2014",
            "id": "201405",
            "text": "2014年05月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2014",
            "id": "201406",
            "text": "2014年06月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2014",
            "id": "201407",
            "text": "2014年07月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2014",
            "id": "201408",
            "text": "2014年08月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2014",
            "id": "201409",
            "text": "2014年09月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2014",
            "id": "201410",
            "text": "2014年10月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2014",
            "id": "201411",
            "text": "2014年11月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2014",
            "id": "201412",
            "text": "2014年12月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "#",
            "id": "2015",
            "text": "2015年",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2015",
            "id": "201501",
            "text": "2015年01月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2015",
            "id": "201502",
            "text": "2015年02月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2015",
            "id": "201503",
            "text": "2015年03月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2015",
            "id": "201504",
            "text": "2015年04月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2015",
            "id": "201505",
            "text": "2015年05月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2015",
            "id": "201506",
            "text": "2015年06月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2015",
            "id": "201507",
            "text": "2015年07月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2015",
            "id": "201508",
            "text": "2015年08月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2015",
            "id": "201509",
            "text": "2015年09月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2015",
            "id": "201510",
            "text": "2015年10月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2015",
            "id": "201511",
            "text": "2015年11月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2015",
            "id": "201512",
            "text": "2015年12月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "#",
            "id": "2016",
            "text": "2016年",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2016",
            "id": "201601",
            "text": "2016年01月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2016",
            "id": "201602",
            "text": "2016年02月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2016",
            "id": "201603",
            "text": "2016年03月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2016",
            "id": "201604",
            "text": "2016年04月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2016",
            "id": "201605",
            "text": "2016年05月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2016",
            "id": "201606",
            "text": "2016年06月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2016",
            "id": "201607",
            "text": "2016年07月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2016",
            "id": "201608",
            "text": "2016年08月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2016",
            "id": "201609",
            "text": "2016年09月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2016",
            "id": "201610",
            "text": "2016年10月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2016",
            "id": "201611",
            "text": "2016年11月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2016",
            "id": "201612",
            "text": "2016年12月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "#",
            "id": "2017",
            "text": "2017年",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2017",
            "id": "201701",
            "text": "2017年01月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2017",
            "id": "201702",
            "text": "2017年02月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2017",
            "id": "201703",
            "text": "2017年03月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2017",
            "id": "201704",
            "text": "2017年04月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2017",
            "id": "201705",
            "text": "2017年05月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2017",
            "id": "201706",
            "text": "2017年06月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2017",
            "id": "201707",
            "text": "2017年07月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2017",
            "id": "201708",
            "text": "2017年08月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2017",
            "id": "201709",
            "text": "2017年09月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2017",
            "id": "201710",
            "text": "2017年10月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2017",
            "id": "201711",
            "text": "2017年11月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2017",
            "id": "201712",
            "text": "2017年12月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "#",
            "id": "2018",
            "text": "2018年",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2018",
            "id": "201801",
            "text": "2018年01月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2018",
            "id": "201802",
            "text": "2018年02月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2018",
            "id": "201803",
            "text": "2018年03月",
            "state": {
                "opened": false
            }
        },
        {
            "parent": "2018",
            "id": "201804",
            "text": "2018年04月",
            "state": {
                "opened": false
            }
        }
    ])
}
export const getDataset = () => {
    return Mock.mock({
        "id": 296,
        "userId": "2807e207-dff4-46c2-bf1a-64b2af865d42",
        "name": "税款表",
        "categoryName": "高新区",
        "categoryId": 2,
        "userName": null,
        "loginName": null,
        "createTime": "2019-07-20 00:09:17.0",
        "updateTime": "2019-11-01 10:21:39.0",
        "data": {
            "schema": {
                "measure": [{
                        "column": "je_q",
                        "id": "fcc97f4b-d0fc-4a2b-a47d-dfcbae812bfb",
                        "type": "column"
                    },
                    {
                        "column": "je_y",
                        "id": "8c79e6cd-f29c-4e2d-a188-a489cf032e95",
                        "type": "column"
                    }
                ],
                "dimension": [{
                        "custom": "dmn_sz",
                        "column": "code_sz",
                        "alias": "税种代码",
                        "id": "ce00f7bb-40b1-4dfe-9104-77aa40159cfc",
                        "type": "column",
                        "_id_column": "code_sz"
                    },
                    {
                        "custom": "dmn_sz",
                        "column": "name_sz",
                        "alias": "税种名称",
                        "id": "b5555c61-427b-4778-99a2-f3b2307650ef",
                        "type": "column",
                        "_id_column": "code_sz"
                    },
                    {
                        "column": "code_szdl",
                        "alias": "国地税编码",
                        "id": "af2f9cd7-075f-460a-b580-1978f205198b",
                        "type": "column"
                    },
                    {
                        "column": "name_szdl",
                        "alias": "国地税名称",
                        "id": "50612550-823c-405f-85e8-d9863ca43e37",
                        "type": "column"
                    },
                    {
                        "custom": "dmn_time",
                        "column": "name_mth",
                        "alias": "日期名称",
                        "id": "56230400-ae72-43bb-bad5-2b7fceff0923",
                        "type": "column",
                        "_id_column": "id_mth"
                    },
                    {
                        "column": "nsrsbh",
                        "alias": "纳税人编号",
                        "id": "1b3369aa-12ee-4b56-8462-5290752cf494",
                        "type": "column"
                    },
                    {
                        "column": "nsrmc",
                        "alias": "纳税人名称",
                        "id": "d9af470f-ce5c-4f86-84a0-1f9032d5486e",
                        "type": "column"
                    },
                    {
                        "column": "name_gbhydl",
                        "alias": "行业名称",
                        "id": "ae224b9d-6c81-49b8-af04-a7c4c4f30be1",
                        "type": "column"
                    },
                    {
                        "custom": "dmn_time",
                        "column": "id_mth",
                        "alias": "日期编号",
                        "id": "f4e50cbc-3cc2-4f36-818b-f21e9f178fce",
                        "type": "column",
                        "_id_column": "id_mth"
                    }
                ]
            },
            "selects": [
                "nsrsbh",
                "nsrmc",
                "code_sz",
                "name_sz",
                "code_szdl",
                "name_szdl",
                "name_gbhydl",
                "id_mth",
                "name_mth",
                "je_y",
                "je_q"
            ],
            "datasource": 21,
            "query": {
                "sql": "SELECT * FROM tmp_adm_skb"
            },
            "filters": [],
            "expressions": []
        },
        "edit": false,
        "delete": false
    })
}
export const getAggregateData = () => {
    return Mock.mock({
        "columnList": [{
                "index": 0,
                "aggType": null,
                "name": "name_mth"
            },
            {
                "index": 1,
                "aggType": "sum",
                "name": "zzs"
            }
        ],
        "data": [
            [
                "2016年03月",
                "524"
            ],
            [
                "2016年02月",
                "952"
            ],
            [
                "2016年05月",
                "1315"
            ],
            [
                "2016年04月",
                "1396"
            ],
            [
                "2016年01月",
                "1724"
            ],
            [
                "2017年03月",
                "2585"
            ],
            [
                "2018年03月",
                "2883"
            ],
            [
                "2016年06月",
                "3099"
            ],
            [
                "2017年02月",
                "3154"
            ],
            [
                "2017年05月",
                "3279"
            ],
            [
                "2017年06月",
                "3378"
            ],
            [
                "2017年04月",
                "3570"
            ],
            [
                "2018年05月",
                "3846"
            ],
            [
                "2018年04月",
                "3916"
            ],
            [
                "2018年06月",
                "4096"
            ],
            [
                "2018年02月",
                "5331"
            ],
            [
                "2017年01月",
                "6851"
            ],
            [
                "2018年01月",
                "7057"
            ]
        ],
        "keyValueData": [{
                "name_mth": "2016年03月",
                "zzs__sum": "524"
            },
            {
                "name_mth": "2016年02月",
                "zzs__sum": "952"
            },
            {
                "name_mth": "2016年05月",
                "zzs__sum": "1315"
            },
            {
                "name_mth": "2016年04月",
                "zzs__sum": "1396"
            },
            {
                "name_mth": "2016年01月",
                "zzs__sum": "1724"
            },
            {
                "name_mth": "2017年03月",
                "zzs__sum": "2585"
            },
            {
                "name_mth": "2018年03月",
                "zzs__sum": "2883"
            },
            {
                "name_mth": "2016年06月",
                "zzs__sum": "3099"
            },
            {
                "name_mth": "2017年02月",
                "zzs__sum": "3154"
            },
            {
                "name_mth": "2017年05月",
                "zzs__sum": "3279"
            },
            {
                "name_mth": "2017年06月",
                "zzs__sum": "3378"
            },
            {
                "name_mth": "2017年04月",
                "zzs__sum": "3570"
            },
            {
                "name_mth": "2018年05月",
                "zzs__sum": "3846"
            },
            {
                "name_mth": "2018年04月",
                "zzs__sum": "3916"
            },
            {
                "name_mth": "2018年06月",
                "zzs__sum": "4096"
            },
            {
                "name_mth": "2018年02月",
                "zzs__sum": "5331"
            },
            {
                "name_mth": "2017年01月",
                "zzs__sum": "6851"
            },
            {
                "name_mth": "2018年01月",
                "zzs__sum": "7057"
            }
        ],
        "recordsTotal": 1,
        "recordsFiltered": 1,
        "draw": 0,
        "extend": {}
    })
}

